import request from './request'

export const LoginLog = params => {
  return request({
    url: '/system/log/login',
    method: 'GET',
    params
  })
}

export const OperationLog = params => {
  return request({
    url: '/system/log/operation',
    method: 'GET',
    params
  })
}

// data需要是数组类型
export const DeleteLoginLog = data => {
  return request({
    url: '/system/log/login',
    method: 'DELETE',
    data
  })
}

// data需要是数组类型
export const DeleteOperationLog = data => {
  return request({
    url: '/system/log/operation',
    method: 'DELETE',
    data
  })
}
